package cn.lili.modules.system.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.system.entity.dos.ResponseLog;
import cn.lili.modules.system.fallback.ResponseLogFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author pyy
 * @since 2023/11/2
 **/
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.SYSTEM_SERVICE, contextId = "response-log", fallback = ResponseLogFallback.class)
public interface ResponseLogClient {


    @PostMapping("/feign/system/response-log/saveOrUpdate")
    boolean saveOrUpdate(@RequestBody ResponseLog responseLog);

}
